#______________________________________________________________________________
def dict2xml(map):
    """ Convenience method for transforming dictionaries into xml.  
        The transformation is {x:y} --> <x>y</x> """
    xml = ""
    for key, value in map.items():
        xml += "<%s>%s</%s>" % (key, value, key)
    return xml